public class Main {
    public static void main(String[] args) {
        RoleFactory factory = new RoleFactory();

        Role sunwukong = factory.getRole("孙悟空");
        sunwukong.display("七十二变");

        Role zhubajie = factory.getRole("猪八戒");
        zhubajie.display("三十六变");

        Role tangseng = factory.getRole("唐僧");
        tangseng.display("念紧箍咒");


    }
}